/*
 * @Author: 唉诺
 * @Date: 2021-02-04 10:11:58
 */
/*
 * @Author: 唉诺
 * @Date: 2021-02-03 18:26:17
 */
import Phaser from 'phaser-ce'

export default class extends Phaser.State {
  init () {
    this.stage.backgroundColor = '#0a8cfd'
  }

  preload () {

  }
  create () {
    this.createBg()
  }
  createBg () {
    const bgnavImg = this.add.image(0, 0, 'bggame')
    bgnavImg.width = window.gameWidth
    bgnavImg.height = window.gameHeight
    let lineGraphics = this.add.graphics(0, 0)
    lineGraphics.lineStyle(1, 0xffffff, 1)
    for (let i = 1; i < 4; i++) {
      lineGraphics.moveTo(window.gameWidth / 4 * i, 0)
      lineGraphics.lineTo(window.gameWidth / 4 * i, window.gameHeight)
    }
  }
}
